﻿
using Bootstrap5.Abstractions;
using Bootstrap5.Design;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5;

/// <summary>
/// 表示栅格的行。
/// </summary>
[CssClass("row")]
public class Row : BootstrapChildContentComponentBase
{
    /// <summary>
    /// 固定列数。
    /// </summary>
    [Parameter] public IGridDecorator Cols { get; set; }

    [Parameter]public IGutterDecorator Gutter { get; set; }

    protected override void BuildExtraCssClassProvider(ICssClassBuilder builder)
    {
        Cols?.BuildClass(builder);
        Gutter?.BuildClass(builder);
    }
}
